-- GENERATED SPELL FOR [Strider Clutchmother] --


function spell0_2172(pUnit, Event) --@Dust Cloud,Self--
pUnit:FullCastSpellOnTarget(7272,pUnit)
pUnit:RegisterEvent('Sorts_2172', 12299, 1)
end

function spell1_2172(pUnit, Event) --@Lash,n/a--
pUnit:FullCastSpellOnTarget(6607,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2172', 1000, 1)
end

function Sorts_2172(pUnit, Event)
local choix_sorts_2172 = math.random(0, 1)
if choix_sorts_2172 == 0 then
pUnit:RegisterEvent('spell0_2172', 1, 1)
end
if choix_sorts_2172 == 1 then
pUnit:RegisterEvent('spell1_2172', 1, 1)
end
end

function mob2172_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2172', math.random(1500, 3000), 1)
end

function mob2172_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2172_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2172_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2172, 1, 'mob2172_Action')
RegisterUnitEvent(2172, 2, 'mob2172_Leave')
RegisterUnitEvent(2172, 3, 'mob2172_Kill')
RegisterUnitEvent(2172, 4, 'mob2172_Die')
